﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DusonFramework.Config.MyConfig
{
    public static class ConfigFactory
    {
        static IConfigFactory _currentConfigFactory = null;

        public static void SetCurrent(IConfigFactory configFactory)
        {
            _currentConfigFactory = configFactory;
        }

        public static IConfig CreateConfig()
        {
            return (_currentConfigFactory != null) ? _currentConfigFactory.Create() : null;
        }
    }
}
